package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@Table("sp_vehicle")
public class Vehicle implements Serializable {
    /**
     * 车辆ID
     */
    @Id(keyType = KeyType.Auto)
    @Column("id")
    private Long id;

    /**
     * 所属小区id
     */
    @Column("cell_id")
    private Long cellId;

    /**
     * 登记车牌
     */
    @Column("plate_no")
    private String plateNo;

    /**
     * 车主
     */
    @Column("owner_name")
    private String ownerName;

    /**
     * 联系方式
     */
    @Column("contact_phone")
    private String contactPhone;

    /**
     * 1:业主、2:租户、3:访客、4:其他
     */
    @Column("owner_type")
    private Integer ownerType;

    /**
     * 备注
     */
    @Column("remark")
    private String remark;

    /**
     * 创建时间
     */
    @Column("created_time")
    private Date createdTime;

    /**
     * 更新时间
     */
    @Column("updated_time")
    private Date updatedTime;

    /**
     * 租户ID
     */
    @Column(value = "tenant_id", tenantId = true)
    private Long tenantId;


}
